import 'package:json_annotation/json_annotation.dart';

part 'room_detail_data.g.dart';

@JsonSerializable()
class RoomDetailData {
  @JsonKey(name: 'houseCode')
  final String id;

  final String title;
  final String community;

  @JsonKey(name: 'description')
  final String subTitle;
  final int size;
  final String floor;
  final int price;
  final String roomType;

  @JsonKey(name: 'houseImg')
  final List<String> houseImgs;
  final List<String> tags;
  final List<String> oriented;

  @JsonKey(name: 'supporting')
  final List<String> applicances;

  RoomDetailData(
      this.id,
      this.title,
      this.community,
      this.subTitle,
      this.size,
      this.floor,
      this.price,
      this.roomType,
      this.houseImgs,
      this.tags,
      this.oriented,
      this.applicances);

  factory RoomDetailData.fromJson(Map<String, dynamic> json) =>
      _$RoomDetailDataFromJson(json);

  Map<String, dynamic> toJson() => _$RoomDetailDataToJson(this);
}
